class Solution {
private:
    int f[101] = {0, 1};
    int MOD = 1000000007;
public:

    int fib(int n) {
        for(int i = 2; i <= n; i++){
            f[i] = f[i - 1] + f[i - 2];
            f[i] %= MOD;
        }
        return f[n];
    }
};
//2021.4.9
